package com.entity;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.util.Date;

/**
 * 【微渐派工管理】 派工管理
 */

@Entity
@Table(name = "weijian_dispatch_record")
@Getter @Setter @NoArgsConstructor
public class WeiJianDispatchRecord extends BaseEntity {

    private String projectName;

    @Column(name = "dispatch_date")
    @Temporal(TemporalType.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dispatchDate;

    @Column(name = "worker_count")
    private Integer workerCount;

    @Column(name = "work_content", length = 500)
    private String workContent;

    @Column(name = "work_location", length = 200)
    private String workLocation;

    @Column(name = "status", columnDefinition = "TINYINT default 1")
    private Integer status;

    @Column(name = "remark", length = 500)
    private String remark;

}